package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_imgcode`", catalog="id")
public class SysImgcode extends BaseEntity<SysImgcode> {

	private Long id; // 主键ID
	private String ip; // IP地址
	private String code; // 图形验证码值
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysImgcode setId(Long id) {
		this.id = id;
		return this;
	}
	public String getIp() {
		return ip;
	}
	public SysImgcode setIp(String ip) {
		this.ip = ip;
		return this;
	}
	public String getCode() {
		return code;
	}
	public SysImgcode setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysImgcode setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysImgcode setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysImgcode setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysImgcode sysImgcode(
		String ip,
		String code,
		Integer status
			) {
		SysImgcode entity = new SysImgcode();
		entity.setIp(ip);
		entity.setCode(code);
		entity.setStatus(status);
		return entity;
	}
}